<template>
	<view class="container">
		<view class="school">
			<SchoolCom
				@handerDetails="handerDetails"
				v-for="item in indexList"
				:key="item.id"
				:item="item"
			></SchoolCom>
		</view>
		<tabbar :select="1"></tabbar>
	</view>
</template>

<script>
import tabbar from '@/components/tabbar/tabbar.vue';
import SchoolCom from '../components/SchoolCom/SchoolCom.vue';
import { indexList } from './indexList.js';
export default {
	components: { tabbar, SchoolCom },
	data() {
		return {
			indexType: uni.getStorageSync('indexType'),
			indexList
		};
	},
	methods: {
		handerDetails(id) {
			uni.navigateTo({
				url: '/pagesB/examinedetails/examinedetails?id=' + id
			});
		}
	},
	onLoad() {
		uni.setStorageSync('indexType', 3);
	}
};
</script>

<style lang="scss" scoped>
page {
	background-color: #fff;
}
.school {
	width: 750rpx;
	background: linear-gradient(180deg, rgba(65, 81, 219, 0.3) 0%, rgba(65, 81, 219, 0) 100%);
	border-radius: 0rpx 0rpx 0rpx 0rpx;
	opacity: 1;
	padding: 0.1rpx;
}
.container {
	padding-bottom: 150rpx;
}
</style>
